package com.abc.robot01.activity.compose

import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.shape.CircleShape
import androidx.compose.foundation.text.BasicText
import androidx.compose.runtime.Composable
import androidx.compose.runtime.MutableState
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import com.abc.robot01.activity.px

class RadioButtonDemo01 : ComponentActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContent {
            Column {
            }
        }
    }
}







//@Composable
//fun CustomRadioButton(selected: Boolean, onClick: () -> Unit, size: Int) {
//    Box(
//        modifier = Modifier
//            .size(size.dp)
//            .background(if (selected) Color.Blue else Color.Gray, CircleShape)
//            .clickable { onClick() },
//        contentAlignment = Alignment.Center
//    ) {
//        if (selected) {
//            Box(
//                modifier = Modifier
//                    .size((size * 0.5).dp)
//                    .background(Color.White, CircleShape)
//            )
//        }
//    }
//}


//@Composable
//fun RadioButtonChoiceDemo() {
//    var selectedOption by remember { mutableStateOf("Option 1") }
//
//    Column(Modifier.padding(16.dp)) {
//        Text("Choose an option:")
//        Spacer(modifier = Modifier.height(8.dp))
//
//        RadioButtonGroup(
//            options = listOf("Option 1", "Option 2", "Option 3"),
//            selectedOption = selectedOption,
//            onOptionSelected = { selectedOption = it }
//        )
//    }
//}


